
 //双指针
 class Solution {
    public ListNode reverseList(ListNode head) {
        ListNode* cur = NULL,*pre = head;
        while(pre != NULL){
            ListNode* t = pre ->next;
            pre-next = cur;
            cur = per;
            pre = t;
        }
        return cur;
    }
}